#ifndef _SPEED_H_
#define _SPEED_H_
#include "page_manager.h"
#include "page_ids.h"

#define SPEED_WAVEFORM_REDUCTION_FACTOR 2.3         // 定速波形衰减倍数

extern PageDescriptor speed_page;  // 添加这行声明

void speed_page_display(void);//绘制定速页静态UI
void ui_speed_page_value_set(float p, float i, float d, int speed, int target,int quick_update);    //绘制定速页参数值的变化
void ui_speed_page_select_box(int mode);//绘制定速页选择框
uint16_t draw_speed_curve(int window_start_x, int window_start_y, int window_w, int window_h, int curve_color,
    int background_color, short int rawValue);

void speed_page_handler(PageEvent event, PageParam *param);



void speed_pid_init(void);

#endif